import QtQuick 2.15
import QtQuick.Window 2.15

Window {
    width: 1024
    height: 768
    visible: true
    title: qsTr("百度网盘-我的盘")

    BaiduLoginUI {
        id: loginui
        objectName: "loginui"
        visible: false
        anchors.centerIn: parent
    }

    FileManagerUI {
        id: fileui
        objectName: "fileui"
        visible: true
        anchors.centerIn: parent
    }
    /** 显示登录界面 */
    function showLogin(){
        loginui.visible = true;
        loginui.showLoginWeb();
        fileui.visible = false;
    }
    /** 显示文件界面 */
    function showFile(){
        loginui.visible = false;
        fileui.visible = true;
    }
}
